﻿Type.registerNamespace("AjaxControlToolkit.LabelEditor");

AjaxControlToolkit.LabelEditor.LabelEditor = function(element) {
	AjaxControlToolkit.LabelEditor.LabelEditor.initializeBase(this, [element]);
	this._lblEdID = '';
}

AjaxControlToolkit.LabelEditor.LabelEditor.prototype =
{
	get_lblEdID: function() {
		return this._lblEdID;
	},

	set_lblEdID: function(value) {
		this._lblEdID = value;
	},

	initialize: function() {

		var e = $get(this._lblEdID);
		e.style.backgroundColor = "pink";
	},

	dispose: function() {

		AjaxControlToolkit.LabelEditor.LabelEditor.callBaseMethod(this, 'dispose');
	},

	add_modifiedChanged: function(handler) {
		this.get_events().addHandler('modifiedChanged', handler);
	},

	InitializeEventHandlers: function() {

	},

	ClearEventHandlers: function() {

	}
}

AjaxControlToolkit.LabelEditor.LabelEditor.descriptor =
{
	properties: [
					{ name: 'lblEdID', type: String }
                ]
}

AjaxControlToolkit.LabelEditor.LabelEditor.registerClass("AjaxControlToolkit.LabelEditor.LabelEditor", Sys.UI.Control);
